package cn.iune.erp.provider;


import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IFileProviderGroupDao {
	
	public void insert(FileProviderGroup obj);
	
	public void delete(String fID);

	public FileProviderGroup update(FileProviderGroup obj) ;

	public List<FileProviderGroup> getAll();
	
	public FileProviderGroup getByID(String fID);
	
	public int getRootCount();

	public List<FileProviderGroup> getRoots(String enterpriseNo);

	public int getChildCount(String fParent);

	public List<FileProviderGroup> getChilds(String fParent);


	public List<FileProviderGroup> getChildren(String fParent);

	List<FileProviderGroup> getList(String enterpriseNo, Integer offset, Integer limit);

	JSONObject query(JSONObject data) throws SQLException;

	JSONObject querySimple(JSONObject data) throws SQLException;

	JSONObject create(JSONObject data);

}
